<?php
require_once('./libs/classes/dbconection.class.php');

class UserM
{
	
	/*
	 * 取得用户自定义博客设置 ￥para 为用户id
	 */
	static function getUserDeploy($para)
	{
			$dbLink = dbconection::makealink();
			$temp  = $dbLink->fetchRow("select * from custom where custom_userid={$para}");
			if($temp)
			{
					$custom = array('blogname'=>$temp['custom_title'],
												'blogintro'=>$temp['custom_intro'],
													);
					$temp2  = $dbLink->fetchRow("select * from deploy where deploy_id={$temp['custom_deploy']}");
					
					$custom = array('blogname'=>$temp['custom_title'],
												'blogintro'=>$temp['custom_intro'],
												'logo_img'=>$temp2['deploy_logoimg'],
												'back_img'=>$temp2['deploy_backimg'],
												'color1'=>$temp2['deploy_fc1'],
												'color2'=>$temp2['deploy_fc2'],
												'color3'=>$temp2['deploy_fc3'],
												'bcolor'=>$temp2['deploy_bc'],
												'lcolor'=>$temp2['deploy_lc'],
													);
					return $custom;
			}
	}
}
?>